//
//  account.h
//  c-game
//
//  Created by Gao YuShan on 2022/10/29.
//

#ifndef account_h
#define account_h

#include <stdio.h>

typedef struct
{
    char id[19];
    char name[21];
    char tel[12];
    char password[11];
    int winsNumber;
} Account;

typedef struct AccountNodeTag
{
    Account data;
    struct AccountNodeTag *next;
} AccountNode;

void zhuce(void);

AccountNode *denglu(void);

AccountNode *loadAccount(void);

void saveAccount(AccountNode *h);

void modifySomeAccount(void);

void deleteSomeAccount(void);

void modifyAccount(char *orgName, AccountNode *newAccount, AccountNode *accounts);

AccountNode *findPreaccount(char *name, AccountNode *h);

#endif /* account_h */
